package com.example.demo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 *  User实体类
 */
@Data
@AllArgsConstructor
@XmlRootElement // 对象转换成xml/json
public class User implements Serializable {
    private static final long serialVersionUID = -2561117553127467595L;

    // 工号
    private Long userId;

    // 姓名
    private String userName;

    // 住址
    private String address;
}
